home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / latex.doc < prev    next >
Encoding:
Text File  |  1985-06-03  |  2.2 KB  |  55 lines

  1. The LATEX EMACS library contains two macros:  LATEX CHECK to check
  2. that LaTeX delimiters are properly nested, and COLOR to add the
  3. color-list arguments to SLiTeX slide and overlay environments.  To
  4. load the library when in EMACS, you type:
  5.  
  6.    <meta-X> LOAD <escape> <TEX82>LATEX <carriage return>
  7.  
  8. After the library is loaded, you call the LATEX CHECK macro by typing:
  9.  
  10.    <meta-X> LATEX CHECK <carriage return>
  11.  
  12. This macro checks the contents of your buffer, starting at the current
  13. pointer position, for the proper nesting of delimiters.  The following
  14. are all the matching LaTeX delimiters checked by this macro:
  15.  
  16.           Opening      Closing
  17.           -------      -------
  18.           {            }
  19.           \begin{...}  \end{...}  [the environment names must match]
  20.           \[           \]
  21.           \(           \)
  22.           $            $
  23.           $$           $$
  24.  
  25. The macro also checks that an opening math mode delimiter doesn't
  26. appear in math mode.  For example, it allows \[ { $ $ } \] but not 
  27. \[ $ $ \] .  Note the following limitations to this macro:
  28.  
  29.    * The argument must immediately follow a \begin or \end command,
  30.      with no intervening spaces.
  31.  
  32.    * The macro recognizes that \{, \$ and \\[ are not delimiters.  However,
  33.      it gets confused if you have \\ right before one of the delimiters --
  34.      for example, if you type  \\\$ or \\\[ .  You should therefore type
  35.      \\ \$  or  \\ \[  instead.
  36.  
  37.  
  38. The COLOR macro inserts the arguments to the SLiTeX \begin{slide} and
  39. \begin{overlay} commands.  You must give the command the list of
  40. colors as its argument.  Thus, if the colors used are red, black and
  41. blue, you would call the macro by typing
  42.  
  43.         <meta-X> COLOR <escape>red,black,blue<carriage return>
  44.  
  45. It doesn't matter whether or not a \begin{slide} or \begin{overlay}
  46. command already has an argument; the current argument will be ignored
  47. if it exists. 
  48.  
  49. This macro assumes that any color declaration outside a slide or
  50. overlay environment is global (it ignores braces and \begin ... \end
  51. pairs other than those delimiting slides and overlays), and that the
  52. color in effect at the \begin{slide} or \begin{overlay} will actually
  53. appear on that slide.  You should run LATEX CHECK to check the nesting
  54. of delimiters before running the COLOR macro.
  55.